import request from '@/request';
import { ILogin } from '@/views/login/types';

export const login = function <U>(data: ILogin): Promise<U> {
    return request({
        method: 'post',
        url: 'auth/login',
        data,
    });
};
